<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxConstraint.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxConstraint_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxConstraint.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxConstraint_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifndef PX_PHYSICS_NX_CONSTRAINT</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define PX_PHYSICS_NX_CONSTRAINT</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxPhysXConfig_8h.html">PxPhysXConfig.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxConstraintDesc_8h.html">PxConstraintDesc.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxBase_8h.html">common/PxBase.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;{</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">class </span><a class="code" href="classPxRigidActor.html">PxRigidActor</a>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">class </span><a class="code" href="classPxScene.html">PxScene</a>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">class </span><a class="code" href="classPxConstraintConnector.html">PxConstraintConnector</a>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html">   62</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structPxConstraintFlag.html">PxConstraintFlag</a></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;{</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427">   64</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427">Enum</a></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    {</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a91151f48e43ade5a5d7153f1b3160696">   66</a></span>&#160;        eBROKEN                     = 1&lt;&lt;0,         </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a33fd9097b65d3350f3165eacdc69abd0">   67</a></span>&#160;        ePROJECT_TO_ACTOR0          = 1&lt;&lt;1,         </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a3636badf43fc1c44645e16c0c1004bb8">   68</a></span>&#160;        ePROJECT_TO_ACTOR1          = 1&lt;&lt;2,         </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a2d3f8e02cd1fa3a41256d186a0a38ebf">   69</a></span>&#160;        ePROJECTION                 = ePROJECT_TO_ACTOR0 | ePROJECT_TO_ACTOR1,  </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a6ad8d7391857323f035ce2ebddee7595">   70</a></span>&#160;        eCOLLISION_ENABLED          = 1&lt;&lt;3,         </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427aef261aa0d46aba737d058fb32bc87c02">   71</a></span>&#160;        eVISUALIZATION              = 1&lt;&lt;4,         </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a330ccf346c5056c0570dbc495007d1ce">   72</a></span>&#160;        eDRIVE_LIMITS_ARE_FORCES    = 1&lt;&lt;5,         </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a316da1cac10cf01bb0b55325ecc8e300">   73</a></span>&#160;        eIMPROVED_SLERP             = 1&lt;&lt;7,         </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a519966ef860b18d3609d7c08f66389ef">   74</a></span>&#160;        eDISABLE_PREPROCESSING      = 1&lt;&lt;8,         </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a7b8997cb72e8bfe7189e62aaa861a820">   75</a></span>&#160;        eENABLE_EXTENDED_LIMITS     = 1&lt;&lt;9,         </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427a8e00c572e54f3575284ff41432f1bec6">   76</a></span>&#160;        eGPU_COMPATIBLE             = 1&lt;&lt;10         </div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    };</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;};</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="group__physics.html#gaf2b7f07d3fa7fafaf3d85114fbb120ee">   85</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classPxFlags.html">PxFlags&lt;PxConstraintFlag::Enum, PxU16&gt;</a> <a class="code" href="group__physics.html#gaf2b7f07d3fa7fafaf3d85114fbb120ee">PxConstraintFlags</a>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;PX_FLAGS_OPERATORS(<a class="code" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427">PxConstraintFlag::Enum</a>, <a class="code" href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">PxU16</a>)</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structPxConstraintShaderTable.html">   88</a></span>&#160;struct <a class="code" href="structPxConstraintShaderTable.html">PxConstraintShaderTable</a></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">enum</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    {</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structPxConstraintShaderTable.html#a7064cf7b45cddd16a6694dbeac2b818ea84198bedfc9c24dbe44b1a6644fa2190">   92</a></span>&#160;        eMAX_SOLVERPRPEP_DATASIZE=400</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    };</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structPxConstraintShaderTable.html#a177a8411969e943559378c9311877d66">   95</a></span>&#160;    <a class="code" href="group__physics.html#ga4d1a71cd5d63cff2bbd97d8bc8899708">PxConstraintSolverPrep</a>          <a class="code" href="structPxConstraintShaderTable.html#a177a8411969e943559378c9311877d66">solverPrep</a>; </div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structPxConstraintShaderTable.html#a8cebd540f03fa599e67abbc69eaccad1">   96</a></span>&#160;    <a class="code" href="group__physics.html#ga355f2bbe3ef578293e64865eb7986752">PxConstraintProject</a>             <a class="code" href="structPxConstraintShaderTable.html#a8cebd540f03fa599e67abbc69eaccad1">project</a>;    </div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structPxConstraintShaderTable.html#ac7cb997bd4489968e45f8feda87e68a8">   97</a></span>&#160;    <a class="code" href="group__physics.html#gaa85dd505b96db854d4ffdbe24fcb9089">PxConstraintVisualize</a>           <a class="code" href="structPxConstraintShaderTable.html#ac7cb997bd4489968e45f8feda87e68a8">visualize</a>;  </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structPxConstraintShaderTable.html#a1b86893516cc00d5c66bdca2de07fdae">   98</a></span>&#160;    <a class="code" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427">PxConstraintFlag::Enum</a>          <a class="code" href="structPxConstraintShaderTable.html#a1b86893516cc00d5c66bdca2de07fdae">flag</a>;       </div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;};</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classPxConstraint.html">  108</a></span>&#160;<span class="keyword">class </span><a class="code" href="classPxConstraint.html">PxConstraint</a> : <span class="keyword">public</span> <a class="code" href="classPxBase.html">PxBase</a></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;{</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                release()                                                       = 0;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classPxScene.html">PxScene</a>*            getScene()                                              <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                getActors(<a class="code" href="classPxRigidActor.html">PxRigidActor</a>*&amp; actor0, <a class="code" href="classPxRigidActor.html">PxRigidActor</a>*&amp; actor1) <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setActors(<a class="code" href="classPxRigidActor.html">PxRigidActor</a>* actor0, <a class="code" href="classPxRigidActor.html">PxRigidActor</a>* actor1)           = 0;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                markDirty()                                                     = 0;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setFlags(<a class="code" href="classPxFlags.html">PxConstraintFlags</a> <a class="code" href="PxConstraintDesc_8h.html#acfdd81caa30ceb0af5fafb4064b1bc67">flags</a>)                               = 0;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classPxFlags.html">PxConstraintFlags</a>   getFlags()                                              <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setFlag(<a class="code" href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427">PxConstraintFlag::Enum</a> flag, <span class="keywordtype">bool</span> value)                = 0;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                getForce(<a class="code" href="classPxVec3.html">PxVec3</a>&amp; <a class="code" href="PxArticulationReducedCoordinate_8h.html#a840381307a4813334fba199be4bbcbf3">linear</a>, <a class="code" href="classPxVec3.html">PxVec3</a>&amp; <a class="code" href="PxArticulationReducedCoordinate_8h.html#a9603c86a5d2d0bff969100f99e404753">angular</a>)               <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span>                isValid() <span class="keyword">const</span>                                                 = 0;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setBreakForce(<a class="code" href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="PxArticulationReducedCoordinate_8h.html#a840381307a4813334fba199be4bbcbf3">linear</a>, <a class="code" href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="PxArticulationReducedCoordinate_8h.html#a9603c86a5d2d0bff969100f99e404753">angular</a>)                = 0;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                getBreakForce(<a class="code" href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>&amp; <a class="code" href="PxArticulationReducedCoordinate_8h.html#a840381307a4813334fba199be4bbcbf3">linear</a>, <a class="code" href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>&amp; <a class="code" href="PxArticulationReducedCoordinate_8h.html#a9603c86a5d2d0bff969100f99e404753">angular</a>)      <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setMinResponseThreshold(<a class="code" href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> threshold)                   = 0;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>              getMinResponseThreshold()                           <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>*               getExternalReference(<a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>&amp; typeID)                         = 0;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setConstraintFunctions(<a class="code" href="classPxConstraintConnector.html">PxConstraintConnector</a>&amp; connector,</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                                                       <span class="keyword">const</span> <a class="code" href="structPxConstraintShaderTable.html">PxConstraintShaderTable</a>&amp; shaders)      = 0;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="classPxConstraint.html#a5b01eac7e58581ba7bb8fab23df99810">  265</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*         <a class="code" href="classPxConstraint.html#a5b01eac7e58581ba7bb8fab23df99810">getConcreteTypeName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;PxConstraint&quot;</span>; }</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classPxConstraint.html#a505f367bc330fa15970154faf7f75d47">  268</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                   <a class="code" href="classPxConstraint.html#a505f367bc330fa15970154faf7f75d47">PxConstraint</a>(<a class="code" href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">PxType</a> concreteType, <a class="code" href="classPxFlags.html">PxBaseFlags</a> baseFlags) : <a class="code" href="classPxBase.html">PxBase</a>(concreteType, baseFlags) {}</div><div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="classPxConstraint.html#ac3a2526c82e5ee4e83c00d0d1d03990b">  269</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                   <a class="code" href="classPxConstraint.html#ac3a2526c82e5ee4e83c00d0d1d03990b">PxConstraint</a>(<a class="code" href="classPxFlags.html">PxBaseFlags</a> baseFlags) : <a class="code" href="classPxBase.html">PxBase</a>(baseFlags) {}</div><div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="classPxConstraint.html#adbcf13c57ee012d5e03ea54017c127cb">  270</a></span>&#160;    <span class="keyword">virtual</span>                     <a class="code" href="classPxConstraint.html#adbcf13c57ee012d5e03ea54017c127cb">~PxConstraint</a>() {}</div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="classPxConstraint.html#aa120d4f05abc0ee24851ae833d293f6a">  271</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span>                <a class="code" href="classPxConstraint.html#aa120d4f05abc0ee24851ae833d293f6a">isKindOf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !::strcmp(<span class="stringliteral">&quot;PxConstraint&quot;</span>, name) || <a class="code" href="classPxBase.html#addfc067afca2f67bda6c497b14424962">PxBase::isKindOf</a>(name); }</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;};</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="classPxScene_html"><div class="ttname"><a href="classPxScene.html">PxScene</a></div><div class="ttdoc">A scene is a collection of bodies and constraints which can interact. </div><div class="ttdef"><b>Definition:</b> PxScene.h:169</div></div>
<div class="ttc" id="structPxConstraintShaderTable_html_a177a8411969e943559378c9311877d66"><div class="ttname"><a href="structPxConstraintShaderTable.html#a177a8411969e943559378c9311877d66">PxConstraintShaderTable::solverPrep</a></div><div class="ttdeci">PxConstraintSolverPrep solverPrep</div><div class="ttdoc">solver constraint generation function </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:95</div></div>
<div class="ttc" id="classPxConstraint_html_a5b01eac7e58581ba7bb8fab23df99810"><div class="ttname"><a href="classPxConstraint.html#a5b01eac7e58581ba7bb8fab23df99810">PxConstraint::getConcreteTypeName</a></div><div class="ttdeci">virtual const char * getConcreteTypeName() const</div><div class="ttdoc">Returns string name of dynamic type. </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:265</div></div>
<div class="ttc" id="structPxConstraintFlag_html"><div class="ttname"><a href="structPxConstraintFlag.html">PxConstraintFlag</a></div><div class="ttdoc">a table of function pointers for a constraint </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:62</div></div>
<div class="ttc" id="structPxConstraintShaderTable_html_a8cebd540f03fa599e67abbc69eaccad1"><div class="ttname"><a href="structPxConstraintShaderTable.html#a8cebd540f03fa599e67abbc69eaccad1">PxConstraintShaderTable::project</a></div><div class="ttdeci">PxConstraintProject project</div><div class="ttdoc">constraint projection function </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:96</div></div>
<div class="ttc" id="namespacephysx_html_a727d2d8426e2a21ebbc522fa65c3f97a"><div class="ttname"><a href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">physx::PxReal</a></div><div class="ttdeci">float PxReal</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:78</div></div>
<div class="ttc" id="classPxBase_html_addfc067afca2f67bda6c497b14424962"><div class="ttname"><a href="classPxBase.html#addfc067afca2f67bda6c497b14424962">PxBase::isKindOf</a></div><div class="ttdeci">virtual bool isKindOf(const char *superClass) const</div><div class="ttdoc">Returns whether a given type name matches with the type of this instance. </div><div class="ttdef"><b>Definition:</b> PxBase.h:178</div></div>
<div class="ttc" id="classPxConstraint_html_aa120d4f05abc0ee24851ae833d293f6a"><div class="ttname"><a href="classPxConstraint.html#aa120d4f05abc0ee24851ae833d293f6a">PxConstraint::isKindOf</a></div><div class="ttdeci">virtual bool isKindOf(const char *name) const</div><div class="ttdoc">Returns whether a given type name matches with the type of this instance. </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:271</div></div>
<div class="ttc" id="PxConstraintDesc_8h_html"><div class="ttname"><a href="PxConstraintDesc_8h.html">PxConstraintDesc.h</a></div></div>
<div class="ttc" id="group__physics_html_ga4d1a71cd5d63cff2bbd97d8bc8899708"><div class="ttname"><a href="group__physics.html#ga4d1a71cd5d63cff2bbd97d8bc8899708">PxConstraintSolverPrep</a></div><div class="ttdeci">PxU32(* PxConstraintSolverPrep)(Px1DConstraint *constraints, PxVec3 &amp;bodyAWorldOffset, PxU32 maxConstraints, PxConstraintInvMassScale &amp;invMassScale, const void *constantBlock, const PxTransform &amp;bodyAToWorld, const PxTransform &amp;bodyBToWorld, bool useExtendedLimits, PxVec3 &amp;cAtW, PxVec3 &amp;cBtW)</div><div class="ttdef"><b>Definition:</b> PxConstraintDesc.h:228</div></div>
<div class="ttc" id="classPxConstraint_html_a505f367bc330fa15970154faf7f75d47"><div class="ttname"><a href="classPxConstraint.html#a505f367bc330fa15970154faf7f75d47">PxConstraint::PxConstraint</a></div><div class="ttdeci">PX_INLINE PxConstraint(PxType concreteType, PxBaseFlags baseFlags)</div><div class="ttdef"><b>Definition:</b> PxConstraint.h:268</div></div>
<div class="ttc" id="PxBase_8h_html"><div class="ttname"><a href="PxBase_8h.html">PxBase.h</a></div></div>
<div class="ttc" id="PxPhysXConfig_8h_html"><div class="ttname"><a href="PxPhysXConfig_8h.html">PxPhysXConfig.h</a></div></div>
<div class="ttc" id="group__common_html_gac1fb4b256a5d900d394e89db170a2b79"><div class="ttname"><a href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">PxType</a></div><div class="ttdeci">PxU16 PxType</div><div class="ttdef"><b>Definition:</b> PxBase.h:49</div></div>
<div class="ttc" id="classPxRigidActor_html"><div class="ttname"><a href="classPxRigidActor.html">PxRigidActor</a></div><div class="ttdoc">PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SD...</div><div class="ttdef"><b>Definition:</b> PxRigidActor.h:58</div></div>
<div class="ttc" id="group__physics_html_gaf2b7f07d3fa7fafaf3d85114fbb120ee"><div class="ttname"><a href="group__physics.html#gaf2b7f07d3fa7fafaf3d85114fbb120ee">PxConstraintFlags</a></div><div class="ttdeci">PxFlags&lt; PxConstraintFlag::Enum, PxU16 &gt; PxConstraintFlags</div><div class="ttdoc">constraint flags </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:85</div></div>
<div class="ttc" id="classPxConstraint_html_adbcf13c57ee012d5e03ea54017c127cb"><div class="ttname"><a href="classPxConstraint.html#adbcf13c57ee012d5e03ea54017c127cb">PxConstraint::~PxConstraint</a></div><div class="ttdeci">virtual ~PxConstraint()</div><div class="ttdef"><b>Definition:</b> PxConstraint.h:270</div></div>
<div class="ttc" id="PxArticulationReducedCoordinate_8h_html_a9603c86a5d2d0bff969100f99e404753"><div class="ttname"><a href="PxArticulationReducedCoordinate_8h.html#a9603c86a5d2d0bff969100f99e404753">angular</a></div><div class="ttdeci">PxVec3 angular</div><div class="ttdef"><b>Definition:</b> PxArticulationReducedCoordinate.h:134</div></div>
<div class="ttc" id="structPxConstraintShaderTable_html_a1b86893516cc00d5c66bdca2de07fdae"><div class="ttname"><a href="structPxConstraintShaderTable.html#a1b86893516cc00d5c66bdca2de07fdae">PxConstraintShaderTable::flag</a></div><div class="ttdeci">PxConstraintFlag::Enum flag</div><div class="ttdoc">constraint flags </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:98</div></div>
<div class="ttc" id="PxConstraintDesc_8h_html_acfdd81caa30ceb0af5fafb4064b1bc67"><div class="ttname"><a href="PxConstraintDesc_8h.html#acfdd81caa30ceb0af5fafb4064b1bc67">flags</a></div><div class="ttdeci">PxU16 flags</div><div class="ttdoc">a set of Px1DConstraintFlags </div><div class="ttdef"><b>Definition:</b> PxConstraintDesc.h:110</div></div>
<div class="ttc" id="classPxConstraint_html"><div class="ttname"><a href="classPxConstraint.html">PxConstraint</a></div><div class="ttdoc">A plugin class for implementing constraints. </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:108</div></div>
<div class="ttc" id="structPxConstraintFlag_html_a86960e99b3e80ddb9e0ab51d7afc3427"><div class="ttname"><a href="structPxConstraintFlag.html#a86960e99b3e80ddb9e0ab51d7afc3427">PxConstraintFlag::Enum</a></div><div class="ttdeci">Enum</div><div class="ttdef"><b>Definition:</b> PxConstraint.h:64</div></div>
<div class="ttc" id="group__physics_html_ga355f2bbe3ef578293e64865eb7986752"><div class="ttname"><a href="group__physics.html#ga355f2bbe3ef578293e64865eb7986752">PxConstraintProject</a></div><div class="ttdeci">void(* PxConstraintProject)(const void *constantBlock, PxTransform &amp;bodyAToWorld, PxTransform &amp;bodyBToWorld, bool projectToA)</div><div class="ttdef"><b>Definition:</b> PxConstraintDesc.h:249</div></div>
<div class="ttc" id="PxArticulationReducedCoordinate_8h_html_a840381307a4813334fba199be4bbcbf3"><div class="ttname"><a href="PxArticulationReducedCoordinate_8h.html#a840381307a4813334fba199be4bbcbf3">linear</a></div><div class="ttdeci">PxVec3 linear</div><div class="ttdef"><b>Definition:</b> PxArticulationReducedCoordinate.h:132</div></div>
<div class="ttc" id="group__physics_html_gaa85dd505b96db854d4ffdbe24fcb9089"><div class="ttname"><a href="group__physics.html#gaa85dd505b96db854d4ffdbe24fcb9089">PxConstraintVisualize</a></div><div class="ttdeci">void(* PxConstraintVisualize)(PxConstraintVisualizer &amp;visualizer, const void *constantBlock, const PxTransform &amp;body0Transform, const PxTransform &amp;body1Transform, PxU32 flags)</div><div class="ttdef"><b>Definition:</b> PxConstraintDesc.h:325</div></div>
<div class="ttc" id="structPxConstraintShaderTable_html"><div class="ttname"><a href="structPxConstraintShaderTable.html">PxConstraintShaderTable</a></div><div class="ttdef"><b>Definition:</b> PxConstraint.h:88</div></div>
<div class="ttc" id="structPxConstraintShaderTable_html_ac7cb997bd4489968e45f8feda87e68a8"><div class="ttname"><a href="structPxConstraintShaderTable.html#ac7cb997bd4489968e45f8feda87e68a8">PxConstraintShaderTable::visualize</a></div><div class="ttdeci">PxConstraintVisualize visualize</div><div class="ttdoc">constraint visualization function </div><div class="ttdef"><b>Definition:</b> PxConstraint.h:97</div></div>
<div class="ttc" id="classPxFlags_html"><div class="ttname"><a href="classPxFlags.html">PxFlags</a></div><div class="ttdoc">Container for bitfield flag variables associated with a specific enum type. </div><div class="ttdef"><b>Definition:</b> PxFlags.h:73</div></div>
<div class="ttc" id="namespacephysx_html_a9caf1cbcda071b6d2a9c069faa99da23"><div class="ttname"><a href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">physx::PxU16</a></div><div class="ttdeci">uint16_t PxU16</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:73</div></div>
<div class="ttc" id="group__foundation_html_gacce5749db3dcfb916e98c253374264ed"><div class="ttname"><a href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a></div><div class="ttdeci">uint32_t PxU32</div><div class="ttdef"><b>Definition:</b> Px.h:48</div></div>
<div class="ttc" id="classPxConstraint_html_ac3a2526c82e5ee4e83c00d0d1d03990b"><div class="ttname"><a href="classPxConstraint.html#ac3a2526c82e5ee4e83c00d0d1d03990b">PxConstraint::PxConstraint</a></div><div class="ttdeci">PX_INLINE PxConstraint(PxBaseFlags baseFlags)</div><div class="ttdef"><b>Definition:</b> PxConstraint.h:269</div></div>
<div class="ttc" id="classPxBase_html"><div class="ttname"><a href="classPxBase.html">PxBase</a></div><div class="ttdoc">Base class for objects that can be members of a PxCollection. </div><div class="ttdef"><b>Definition:</b> PxBase.h:73</div></div>
<div class="ttc" id="group__foundation_html_gacb03347b642a2a5bdea1f9b305a6fbec"><div class="ttname"><a href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a></div><div class="ttdeci">#define PX_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:336</div></div>
<div class="ttc" id="classPxVec3_html"><div class="ttname"><a href="classPxVec3.html">PxVec3</a></div><div class="ttdoc">3 Element vector class. </div><div class="ttdef"><b>Definition:</b> PxVec3.h:49</div></div>
<div class="ttc" id="classPxConstraintConnector_html"><div class="ttname"><a href="classPxConstraintConnector.html">PxConstraintConnector</a></div><div class="ttdoc">This class connects a custom constraint to the SDK. </div><div class="ttdef"><b>Definition:</b> PxConstraintDesc.h:352</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="PxConstraint_8h.html">PxConstraint.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
